package entity;

public abstract class ContaCorrente extends Conta {
    
    private double depositoInicial;
    private double limite;
    private int numContaCor;

    public double getDepositoInicial() {
        return depositoInicial;
    }

    public void setDepositoInicial(double depositoInicial) {
        this.depositoInicial = depositoInicial;
    }

    public double getLimite() {
        return limite;
    }

    public void setLimite(double limite) {
        this.limite = limite;
    }

    public int getNumContaCor() {
        return numContaCor;
    }

    public void setNumContaCor(int numContaCor) {
        this.numContaCor = numContaCor;
    }
    
    public boolean saca (double valor) {
        if (valor > limite) {
            return false;
        } else {
            return true;
        }
    }
    
    public void remunera() {
        super.saldo = super.saldo * 1.01;
    }
}
